<!DOCTYPE html>
<html class="no-js">
<head lang="en">

    <#include "../head_import.html" />

</head>
<body>
<#include "../include/top_nav.html">
    <div class="am-cf admin-main">

        <!-- sidebar start -->
        <#include "../config/left.html">
            <!-- sidebar end -->
            <!-- content start-->
            <div class="admin-content">
                <div class="am-cf am-padding">
                    <div class="am-fl am-cf"><@s.m "global.position"/>:  <@s.m "payment.function"/> - <@s.m "global.edit"/></div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-sm-centered">
                        <form class="ropt">
                            <input type="button" value="<@s.m "global.backToList"/>" onclick="history.back();"/>
                        </form>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-sm-centered">
                        <@p.form id="baseForm" action="o_update.do" labelWidth="15">
                        <@p.text colspan="2" width="50" label="名称" name="name" required="true" value=paymentPlugins.name class="required" maxlength="150"/><@p.tr/>
                        <@p.text colspan="2" width="50" label="排列顺序" name="priority" size="7" value=paymentPlugins.priority required="true" class="required digits" maxlength="10"/><@p.tr/>
                        <@p.text colspan="2" width="50" label="合作身份者ID" name="partner"  value=paymentPlugins.partner required="true" class="required" maxlength="150"/><@p.tr/>
                        <@p.text colspan="2" width="50" label="交易安全检验码" name="sellerKey"  value=paymentPlugins.sellerKey required="true" class="required" maxlength="150"/><@p.tr/>
                        <@p.text colspan="2" width="50" label="签约支付宝账号" name="sellerEmail" value=paymentPlugins.sellerEmail required="true" class="required" maxlength="150"/><@p.tr/>
                        <@p.td label="LOGO" colspan="1" width="50" noHeight="true">
                        <@p.text id="uploadImgPath1" name="imgPath" value=paymentPlugins.imgPath! size="30"/> <input type="button" value="<@s.m "imageupload.clear"/>" onclick="clearImg(1);"/><br/>
                        <span id="ufc1"><input type="file" id="uploadFile1" size="20"/></span> <input type="button" value="<@s.m "imageupload.upload"/>" onclick="upload(1);"/><br/>
                        <@s.m "global.width"/>: <input type="text" id="zoomWidth1" value="139" size="5"/> <@s.m "global.height"/>: <input type="text" id="zoomHeight1" value="139" size="5"/> <input type="button" value="<@s.m "imageupload.cut"/>" onclick="imgCut(1);"/>
                    </@p.td><@p.td colspan="1" width="50">
                    <img id="preImg1" alt="<@s.m "imageupload.preview"/>" style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/>
                </@p.td><@p.tr/>
                <@p.editor colspan="2" width="50" label="payment.description" name="description" value=paymentPlugins.description! toolbarSet="Simple" maxlength="1024"/><@p.tr/>
                <@p.td colspan="2">
                <@p.hidden name="id" value=paymentPlugins.id/>
                <@p.submit code="global.submit"/> &nbsp; <@p.reset code="global.reset"/>
            </@p.td>
        </@p.form>
            </div>
    </div>



    </div>

    </div>

<script type="text/javascript">
$(function() {
	<#if paymentPlugins.imgPath??>
	$("#preImg1").css("width","auto").css("height","auto").attr("src","${paymentPlugins.imgPath}?d="+new Date()*1);
	</#if>
});
</script>

<#include "/common/image_upload.html"/>

</body>
</html>